package com.yidu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.dao.ListenModuleRoleMapper;
import com.yidu.domain.ListenModuleRole;
import com.yidu.domain.ListenMusicalType;
import com.yidu.service.ListenModuleRoleService;

/**
 * 
 * 类注释:模块角色服务实现类
 * @author wpy
 * 2018年11月27日上午11:42:27
 */
@Service
public class ListenModuleRoleServiceImpl implements ListenModuleRoleService {
	
	@Resource
	private ListenModuleRoleMapper moduleRoleDao;

	@Override
	public int deleteByPrimaryKey(String mrId) {
		return moduleRoleDao.deleteByPrimaryKey(mrId);
	}

	@Override
	public int insert(ListenModuleRole mr) {
		return moduleRoleDao.insert(mr);
	}

	@Override
	public int insertSelective(ListenModuleRole mr) {
		return moduleRoleDao.insertSelective(mr);
	}

	@Override
	public ListenModuleRole selectByPrimaryKey(String mrId) {
		return moduleRoleDao.selectByPrimaryKey(mrId);
	}

	@Override
	public int updateByPrimaryKeySelective(ListenModuleRole mr) {
		return moduleRoleDao.updateByPrimaryKeySelective(mr);
	}

	@Override
	public int updateByPrimaryKey(ListenModuleRole mr) {
		return moduleRoleDao.updateByPrimaryKey(mr);
	}
	
	@Override
	public List<ListenModuleRole> selectByRole(ListenModuleRole mr) {
		return moduleRoleDao.selectByRole(mr);
	}

	@Override
	public int deleteByRole(String roleId) {
		return moduleRoleDao.deleteByRole(roleId);
	}

	@Override
	public Integer selectStockCount(String companyId) {
		return moduleRoleDao.selectStockCount(companyId);
	}


	@Override
	public Integer selectSellCount(String companyId) {
		return moduleRoleDao.selectSellCount(companyId);
	}

	@Override
	public Integer selectBranchCount(String companyId) {
		return moduleRoleDao.selectBranchCount(companyId);
	}

	@Override
	public Double selectFinanceCount(String companyId) {
		return moduleRoleDao.selectFinanceCount(companyId);
	}

	@Override
	public Integer selectTodaySell(Map<String, Object> map) {
		return moduleRoleDao.selectTodaySell(map);
	}
}
